const defualtState = {
  city: null, //具体的城市
  hotCity: [], //热门城市
  groupCity: [], // 所有城市
}

export default (state = defualtState, action) => {
  switch (action.type) {
    case 'hot':
      return { ...state, hotCity: action.payload }
    case 'group':
      return { ...state, groupCity: action.payload }
    default:
      return state
  }
}
